{include(head.tpl)}
<body>
<div class="wrapper-content">
    <div class="animated fadeInDown wrap">

        <table class="table_value table">
            <tr>
              <th>ID</th>
              <th>操作人员</th>
              <th>操作</th>
              <th>详细描述</th>
              <th>操作设备</th>
              <th>操作时间</th>
            </tr>
            {foreach from=listarr item=vo}
                <tr>
                  <td>{$vo.id}</td>
                  <td>{$vo.username}</td>
                  <td>{$vo.operate}</td>
                  <td>{$vo.detail}</td>
                  <td>{$vo.device}</td>
                  <td><?php echo date('Y-m-d H:i:s',$vo['logtime']) ;?></td>
                </tr>
            {/foreach}
        </table>
        <div class="page">{pageshow}</div>
    </div>
</div>

<script>
function ajaxpage(page){
    var url='page='+page;
    _ajaxs.post('{mothedurl}',url,function _return(hdata){
        var pageh=pagehead();
        var pagec=pagecontent(hdata);
        $('.table_value').html('');
        $('.table_value').html(pageh+pagec);
        $('.page').html('');
        $('.page').html(hdata.data.pageshow);
    })
}
function pagehead(){
    var pageheadhtml='  <tr>\
        <th>ID</th>\
        <th>操作人员</th>\
        <th>操作</th>\
        <th>详细描述</th>\
        <th>操作设备</th>\
        <th>操作时间</th>\
      </tr>';
    return pageheadhtml;
}
function pagecontent(hdata){
    var list=hdata.data.list;
    var pagecontenthtml='';
    if(list!=''){
      for(i=0;i<list.length;i++){
        pagecontenthtml+='  <tr>\
            <td>'+list[i]['id']+'</td>\
            <td>'+list[i]['username']+'</td>\
            <td>'+list[i]['operate']+'</td>\
            <td>'+list[i]['detail']+'</td>\
            <td>'+list[i]['device']+'</td>\
            <td>'+_myTime.UnixToDate(list[i]['logtime'],true,8)+'</td>\
          </tr>';
      }
    }
    return pagecontenthtml;

}
</script>
</body>
</html>
